package com.towexin.application.activiti.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * TODO
 *
 * @author Towexin
 * @version 1.0
 * @date 2021/10/20 9:57
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("t_activities_form")
public class ActivitiesForm implements Serializable {
    @TableId
    private String id;

    @TableField(insertStrategy = FieldStrategy.NOT_NULL)
    private String formJson;

    @TableField(insertStrategy = FieldStrategy.NOT_NULL, fill = FieldFill.INSERT)
    private Date createdTime;

    @TableField(insertStrategy = FieldStrategy.NOT_NULL, fill = FieldFill.UPDATE)
    private Date updateTime;

    public ActivitiesForm(String id, String jsonString) {
        this.id = id;
        this.formJson = jsonString;
    }
}
